package capricornus.utils.pool
{
	public class UIPool
	{
		//待完成
		public var bufferLength:int = 0;
		
		private var arrBuffer:Array = [];
		
		public function UIPool()
		{
		}
		
		public function buffer( c:Class ):void
		{
			while( arrBuffer.length < bufferLength )
			{
				arrBuffer[arrBuffer.length] = new c();
			}
		}
		
		public function getBuffer():Object
		{
			return arrBuffer.pop();
		}
	}
}